package com.bdqn.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 类名 Student
 * 描述 TODO
 * 日期 2022/2/14 9:47
 * 创建人 by xfq
 * 项目名称 springbootbook
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Student {

    private Integer id;
    private Integer sno;
    private String password;
    private Character gender;
    private String phone;
    private String sname;
    private String address;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;
}
